#include <iostream>
using namespace std;
int main()
{ char s[300];
  int i,n;
  cin>>n;
  cin.get();
  gets(s);
  for(i=0; s[i]; i++)
    if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z'||s[i]>='0'&&s[i]<='9')
      s[i]+=n;
  cout<<s<<endl;
  return 0;
}
